package com.cloud.note.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.nio.file.Path;
import java.util.stream.Stream;

public interface FileStorageService {

    String storeFile(MultipartFile file, String userId, String noteId) throws IOException;

    Path getFilePath(String fileName);

    Stream<Path> loadAll() throws IOException;

    void deleteFile(String fileName) throws IOException;
}